<script lang="ts" setup>
import { useTheme } from "@/hooks/useTheme"
const { isDark, toggleDark } = useTheme()


</script>
<!-- mdi-weather-night -->
<template>
    <v-btn icon @click="toggleDark">
        <v-icon :icon="`${isDark ? 'mdi-weather-night' : 'mdi-white-balance-sunny'}`"></v-icon>
        <v-tooltip activator="parent" location="bottom">{{ isDark ? '点击切换白天' : '点击切换黑夜' }}</v-tooltip>
    </v-btn>
</template>
